﻿<%@ Page Title="" ValidateRequest="false" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="IMark.Admin.Product.Add" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <div id="info" runat="server"></div>
            <div class="panel panel-green">
                <div class="panel-heading">
                    Thêm Sản Phẩm                       
                </div>
                <!-- /.panel-heading -->
                <div class="panel-body">
                    <div class="form-group">
                        <label>Tên sản phẩm <span class="irequire">(*)</span></label>
                        <input id="txtProductName" runat="server" placeholder="Nhập tên sản phẩm mới cần thêm" class="form-control validate[required]" data-prompt-position="topLeft" />
                    </div>
                                        
                    <div class="form-group">
                        <label>Loại sản phẩm <span class="irequire">(*)</span></label>
                        <div id="lstProductType" runat="server"></div>
                    </div>
                    <div class="form-group">
                        <label>Giá <span class="irequire">(*)</span></label>
                        <input id="txtPrice" onkeyup="formatInt(this)" onkeydown="return isNumber(event);" maxlength="12" runat="server" placeholder="Nhập giá sản phẩm" class="form-control validate[required]" data-prompt-position="topLeft" />
                    </div>
                    <div class="form-group">
                        <label>Số lượng <span class="irequire">(*)</span></label>
                        <input id="txtQuantity" onkeypress="return isInt(event)" maxlength="3" runat="server" placeholder="Nhập số lượng sản phẩm" class="form-control validate[required]" data-prompt-position="topLeft" />
                    </div>
                    <div class="form-group">
                        <label>Hình ảnh <span class="irequire">(*)</span></label>
                        <asp:FileUpload AllowMultiple="true" ID="fUpload" runat="server" CssClass="validate[required]" data-prompt-position="topLeft" />
                    </div>
                    <div class="form-group">
                        <label>Thương hiệu</label>
                        <input id="txtBrand" runat="server" placeholder="Nhập thương hiệu" class="form-control"/>
                    </div>
                    <div class="form-group">
                        <label>Mô tả tóm tắt</label>
                        <textarea id="txtSummary" placeholder="Mô tả tóm tắt" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>Mô tả chi tiết <span class="irequire">(*)</span></label>
                        <textarea id="txtContent" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>Thông tin thêm </label>
                        <textarea id="txtInfoMore" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>Meta Title</label>
                        <textarea id="txtMetaTitle" placeholder="Nhập Meta Title" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>Meta Keyword</label>
                        <textarea id="txtMetaKeyword" placeholder="Nhập Meta Keyword" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>Meta Description</label>
                        <textarea id="txtMetaDescription" placeholder="Nhập Meta Description" runat="server" rows="2" class="form-control"></textarea>
                    </div>
                    <!-- /.table-responsive -->
                    <asp:Button ID="btnAdd" runat="server" CssClass="btn btn-primary" Text="Thêm Sản Phẩm" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnCancel" runat="server" CssClass="btn btn-primary" UseSubmitBehavior="false" Text="Thoát" OnClick="btnCancel_Click" />
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Footer" runat="server">
    <script src="<%= ResolveClientUrl("~/Editor/ckeditor/ckeditor.js") %>"></script>           
    <script type="text/javascript">
        var content = "<%= txtContent.ClientID %>";
        var infoMore = "<%= txtInfoMore.ClientID%>";
        CKEDITOR.replace(content);
        CKEDITOR.replace(infoMore);
        $(document).ready(function () {
            $("#aspnetForm").validationEngine();            
        });
    </script>
</asp:Content>
